package fr.neyb.bernouilli.problem003;

public class Entry {

	public static void main(String... args) {
		long source = 600851475143l, curr = 1l;
		
		for (curr = 1l; source != 1; source /= curr) 
			while (source % (curr += 2) != 0)
				;

		System.out.println(curr);

	}

}
